package com.hyzx.qbasic.admin.domain.service;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.SysConfigPO;
import com.hyzx.qbasic.admin.model.vo.req.admin.AddConfigReq;
import com.hyzx.qbasic.admin.model.vo.req.admin.DeleteConfigReq;
import com.hyzx.qbasic.admin.model.vo.req.admin.EditConfigReq;
import com.hyzx.qbasic.admin.model.vo.req.admin.GetConfigListReq;
import com.hyzx.qbasic.admin.model.vo.res.BaseOperationRes;

import java.util.Map;

/**
 * Created by 黄江华 on 2018/7/23
 */

public interface ISysConfigService {
    Map<String, String> getAllConfig();

    PageInfo<SysConfigPO> getPagedConfigList(GetConfigListReq req);

    BaseOperationRes addConfig(AddConfigReq req);

    BaseOperationRes deleteConfig(DeleteConfigReq req);

    SysConfigPO getConfigInfoById(int confId);

    String getConfigByKey(String confKey);

    BaseOperationRes editConfig(EditConfigReq req);
}
